package api

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"kubequant/api/routes"
)

func RunApi() {
	r := gin.Default()
	routes.InitRouter(r)
	err := r.Run(":8080")
	if err != nil {
		fmt.Println("API 错误")
	}
}
